<%--
    Document   : IngresarFisioterapeuta
    Created on : Nov 19, 2010, 11:24:06 AM
    Author     : Alith
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
    <link rel="stylesheet" type="text/css" href="/PruebaPasoPaso/faces/jsfcrud.css" />
    <title>comentar Informe</title>
  </head>
    <body><body style="background-color:#FFFFFF ">
        <center><h2>Informe de la sesion</h2></center>
        <form ACTION="comentarInforme.htm" METHOD="POST">
            <input type="hidden" name="id" value="${model.informes.idInforme}"/>
            <input type="hidden" name="id_fisio" value="${model.id_fisio}"/>
          <table align="center" width="50%" bgcolor="FFFFFF" border="0" cellspacing="0" cellpadding="5">
            <tr>
              <td align="right" width="20%">Titulo:</td>
              <td align="left" width="80%">${model.informes.titulo}</td>
            </tr>
            <tr>
              <td style="vertical-align:top" align="right" width="20%">Descripcion:</td>
              <td style="text-align:justify" width="20%">${model.informes.descripcion}</td>
            </tr>
          </table>
            <center>
            <h3><b>Comentario</b></h3>
            <textarea cols="60" rows="5" name="texto" value=""></textarea><br><br>
            <input type="submit" align="center" value="Comentar">
            </center>
            <br><br><hr><br>
          <table align="center" width="60%" bgcolor="FFFFFF" border="0" cellspacing="0" cellpadding="5">
            <tr>
                <td><b>Nombre</b></td>
                <td><b>Comentario</b></td>
                <td><b>Fecha</b></td>
                <td><b>Accion</b></td>
            </tr>
            <c:forEach items="${model.comentarios}" var="comentar">
                <tr>
                    <td align="left" width="30%"><c:out value="${comentar.coment.fisioterapeuta.nombre}"/> <c:out value="${comentar.coment.fisioterapeuta.apellido}"/></td>
                    <td align="left"><c:out value="${comentar.coment.texto}"/></td>
                    <td><c:out value="${comentar.coment.fecha}"/></td>
                    <td><a href ="/fisiosoftJDV/comentarInforme.htm?tipo=eliminar&id=<c:out value="${model.informes.idInforme}"/>&id_coment=<c:out value="${comentar.coment.idComentario}"/>&id_fisio=<c:out value="${model.id_fisio}"/>"><c:out value="${comentar.eliminar}"/></a></td>
                </tr>
            </c:forEach>
          </table>
        </form>
    </body>
</html>
